﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Huioo.Learning.Agile.Payroll.Domain;

namespace Huioo.Learning.Agile.Payroll.Application
{
    public class ChangeAddressTransaction : ChangeEmployeeTransaction
    {
        private readonly string address;

        public ChangeAddressTransaction(int empId, string address)
            : base(empId)
        {
            this.address = address;
        }

        protected override void Change(Employee e)
        {
            e.Address = address;
        }
    }
}
